package org.example.class_sch;

import org.example.class_sch.model.Message;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;

@Configuration
@SpringBootApplication
public class ClassSchApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(ClassSchApplication.class, args);
        Message message = context.getBean(Message.class);
        System.out.println(message);
    }

}
